﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

// 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IService”。
[ServiceContract]
public interface IBlackMofoService
{
	// TODO: 在此添加您的服务操作

    #region Exhibit服务接口

    /// <summary>
    /// 增加一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待增加的对象</param>
    /// <returns>若添加成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitInsert(string authid, string model);

    /// <summary>
    /// 更新一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待更新的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUpdate(string authid, string model);

    /// <summary>
    /// 删除一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待删除的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitDelete(string authid, string model);

    /// <summary>
    /// 更新数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">待更新的对象模型列表</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUpdateList(string authid, string list);

    /// <summary>
    /// 获取编号为 ID 的对象信息
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>编号为ID的对象</returns>
    [OperationContract]
    string ExhibitGetByID(string authid, string id);

    /// <summary>
    /// 判断编号值为 ID 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>若编号为ID的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitExists(string authid, string id);

    /// <summary>
    /// 删除 list 中列出的一批数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">删除数据列表</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitDeleteList(string authid, string list);

    /// <summary>
    /// 删除编号为 ID 一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">要删除的对象的编号</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitDeleteByID(string authid, string id);

    /// <summary>
    /// 判断 ID=id 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">id</param>
    /// <returns>若名称为Name的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitGetRecordCount(string authid, string where);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitGetListByPage(string authid, string where, string page);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="order">排序字段</param>
    /// <param name="order">升序或倒序</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitGetListWhere(string authid, string where, string order, string asc);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitGetInValidData(string authid);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitGetInValidDataPage(string authid, string page);

    #endregion //end Exhibit接口声明

    #region ExhibitType服务接口

    /// <summary>
    /// 增加一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待增加的对象</param>
    /// <returns>若添加成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeInsert(string authid, string model);

    /// <summary>
    /// 更新一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待更新的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeUpdate(string authid, string model);

    /// <summary>
    /// 删除一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待删除的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeDelete(string authid, string model);

    /// <summary>
    /// 更新数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">待更新的对象模型列表</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeUpdateList(string authid, string list);

    /// <summary>
    /// 获取编号为 ID 的对象信息
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>编号为ID的对象</returns>
    [OperationContract]
    string ExhibitTypeGetByID(string authid, string id);

    /// <summary>
    /// 判断编号值为 ID 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>若编号为ID的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeExists(string authid, string id);

    /// <summary>
    /// 删除 list 中列出的一批数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">删除数据列表</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeDeleteList(string authid, string list);

    /// <summary>
    /// 删除编号为 ID 一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">要删除的对象的编号</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeDeleteByID(string authid, string id);

    /// <summary>
    /// 判断 ID=id 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">id</param>
    /// <returns>若名称为Name的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitTypeGetRecordCount(string authid, string where);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitTypeGetListByPage(string authid, string where, string page);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="order">排序字段</param>
    /// <param name="order">升序或倒序</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitTypeGetListWhere(string authid, string where, string order, string asc);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitTypeGetInValidData(string authid);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitTypeGetInValidDataPage(string authid, string page);

    #endregion //end ExhibitType接口声明

    #region ExhibitUnit服务接口

    /// <summary>
    /// 增加一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待增加的对象</param>
    /// <returns>若添加成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitInsert(string authid, string model);

    /// <summary>
    /// 更新一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待更新的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitUpdate(string authid, string model);

    /// <summary>
    /// 删除一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待删除的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitDelete(string authid, string model);

    /// <summary>
    /// 更新数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">待更新的对象模型列表</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitUpdateList(string authid, string list);

    /// <summary>
    /// 获取编号为 ID 的对象信息
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>编号为ID的对象</returns>
    [OperationContract]
    string ExhibitUnitGetByID(string authid, string id);

    /// <summary>
    /// 判断编号值为 ID 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>若编号为ID的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitExists(string authid, string id);

    /// <summary>
    /// 删除 list 中列出的一批数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">删除数据列表</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitDeleteList(string authid, string list);

    /// <summary>
    /// 删除编号为 ID 一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">要删除的对象的编号</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitDeleteByID(string authid, string id);

    /// <summary>
    /// 判断 ID=id 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">id</param>
    /// <returns>若名称为Name的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string ExhibitUnitGetRecordCount(string authid, string where);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitUnitGetListByPage(string authid, string where, string page);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="order">排序字段</param>
    /// <param name="order">升序或倒序</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitUnitGetListWhere(string authid, string where, string order, string asc);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitUnitGetInValidData(string authid);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string ExhibitUnitGetInValidDataPage(string authid, string page);

    #endregion //end ExhibitUnit接口声明

    #region SysAdmin服务接口

    /// <summary>
    /// 增加一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待增加的对象</param>
    /// <returns>若添加成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminInsert(string authid, string model);

    /// <summary>
    /// 更新一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待更新的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminUpdate(string authid, string model);

    /// <summary>
    /// 删除一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待删除的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminDelete(string authid, string model);

    /// <summary>
    /// 更新数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">待更新的对象模型列表</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminUpdateList(string authid, string list);

    /// <summary>
    /// 获取编号为 ID 的对象信息
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>编号为ID的对象</returns>
    [OperationContract]
    string SysAdminGetByID(string authid, string id);

    /// <summary>
    /// 判断编号值为 ID 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>若编号为ID的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminExists(string authid, string id);

    /// <summary>
    /// 删除 list 中列出的一批数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">删除数据列表</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminDeleteList(string authid, string list);

    /// <summary>
    /// 删除编号为 ID 一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">要删除的对象的编号</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminDeleteByID(string authid, string id);

    /// <summary>
    /// 判断 ID=id 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">id</param>
    /// <returns>若名称为Name的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string SysAdminGetRecordCount(string authid, string where);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string SysAdminGetListByPage(string authid, string where, string page);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="order">排序字段</param>
    /// <param name="order">升序或倒序</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string SysAdminGetListWhere(string authid, string where, string order, string asc);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string SysAdminGetInValidData(string authid);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string SysAdminGetInValidDataPage(string authid, string page);

    #endregion //end SysAdmin接口声明

    #region User服务接口

    /// <summary>
    /// 增加一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待增加的对象</param>
    /// <returns>若添加成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserInsert(string authid, string model);

    /// <summary>
    /// 更新一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待更新的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserUpdate(string authid, string model);

    /// <summary>
    /// 删除一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="model">待删除的对象模型</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserDelete(string authid, string model);

    /// <summary>
    /// 更新数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">待更新的对象模型列表</param>
    /// <returns>若更新成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserUpdateList(string authid, string list);

    /// <summary>
    /// 获取编号为 ID 的对象信息
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>编号为ID的对象</returns>
    [OperationContract]
    string UserGetByID(string authid, string id);

    /// <summary>
    /// 判断编号值为 ID 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">对象编号</param>
    /// <returns>若编号为ID的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserExists(string authid, string id);

    /// <summary>
    /// 删除 list 中列出的一批数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="list">删除数据列表</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserDeleteList(string authid, string list);

    /// <summary>
    /// 删除编号为 ID 一条数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">要删除的对象的编号</param>
    /// <returns>若删除成功，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserDeleteByID(string authid, string id);

    /// <summary>
    /// 判断 ID=id 的对象是否存在
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="ID">id</param>
    /// <returns>若名称为Name的对象存在，则返回 true；否则，返回false</returns>
    [OperationContract]
    string UserGetRecordCount(string authid, string where);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string UserGetListByPage(string authid, string where, string page);

    /// <summary>
    /// 获取满足指定条件的数据列表
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="where">指定查询条件</param>
    /// <param name="order">排序字段</param>
    /// <param name="order">升序或倒序</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string UserGetListWhere(string authid, string where, string order, string asc);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string UserGetInValidData(string authid);

    /// <summary>
    /// 获取无效数据
    /// </summary>
    /// <param name="authid">身份认证ID</param>
    /// <param name="page">分页对象</param>
    /// <returns>满足指定条件的数据列表</returns>
    [OperationContract]
    string UserGetInValidDataPage(string authid, string page);

    #endregion //end User接口声明
}
